import {NestMiddleware,Injectable} from '@nestjs/common';
import {Request, Response, NextFunction} from 'express'

@Injectable()
export class TimeMiddleware implements NestMiddleware {
    use(req: Request, res: Response, next: NextFunction) {
        console.log('TimeMiddleware use method'+new Date().getTime());
        next();
    }
}
